{{ partial "header.html" . }}
<script type="text/javascript">
  var words = new Array();
  {{ range $key,$taxonomy := .Site.Taxonomies.categories }}
	 words.push({text:"{{$key}}",weight:(Math.random() * 10 + 0.02).toFixed(2),link:"/categories/{{$key}}"});
  {{ end }}  

  function initTags(){
	$("#category_area").jQCloud(words,{
		autoResize: true,
		fontSize: {
			from: 0.1,
			to: 0.02
		}
	});
  }
</script>
<body onload="initTags()">
	<div id="layout" class="pure-g">

        <a href="https://github.com/lucumt/ghblog" target="_new">
			<img style="position: absolute; top: 0; right: 0; border: 0;" 
			src="/img/forkme_right_red.png" alt="Fork me on GitHub">
		</a>

    {{ partial "sidebar.html" . }}

    <div class="content pure-u-1 pure-u-md-3-4">
      <a name="top"></a>
      {{ partial "listtop.html" . }}



	<section id="main">
	  <div>
		{{ range .Data.Pages.GroupByDate "2006" }}
		<h1>{{ .Key }}</h1>
			<ul id="list">
				{{ range .Pages }}
					<li>
						<a href="{{ .Permalink }}">{{ .Title }} {{ if .GetParam "draft"}}DRAFT{{end}}</a>
						<span class="meta">{{ .Date.Format "2006-01-02" }}</span>
					</li>
				{{ end }}
			</ul>
		{{ end }}
	  </div>
	</section>

    <div id="category_area" class="cloud_area"></div>

      {{ partial "footer.html" . }}
    </div>
  </div>
  {{ partial "bodyend.html" . }}
</body>
</html>
